layui.use(['form', "fsConfig", "fsCommon"], function () {
    var form = layui.form,
        layer = layui.layer,
        fsCommon = layui.fsCommon,
        fsConfig = layui.fsConfig,
        jumpLogin = $.result(fsConfig, "filters.401");

    var token = localStorage.getItem('cdce_serivce_token');
    if (token === "") {
        jumpLogin()
    }

    function callback(data) {
        layer.msg("打印成功")
    }

    $(".print").click(function () {
        fsCommon.get("/exam/v1alpha/print", "", callback)
    })
});